﻿#pragma once
#include "Control.hpp"
namespace NAMESPACENAME
{
	/// <summary>
	/// 封装了按钮控件
	/// </summary>
	class Button :
		public Control
	{
	protected:
		virtual void OnDestroy()override;
		virtual void OnClose()override;
		virtual void OnNcPaint(HRGN hRgn)override;
		virtual void OnCommand(UINT message, UINT id, Control* control)override;
		virtual void OnLoad()override;
		virtual void OnUnLoad()override;
		virtual void OnPaint()override;
	public:
		Button(const Rectangle& rect, String title, ContainerControl* parent = nullptr);
	};
}